body {
  max-width: 540px;
  min-width: 320px;
  margin: 0 auto;
  font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei",
    STXihei, hei;
  color: #000;
  background: #f2f2f2;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: #222;
}

div {
  box-sizing: border-box;
}

li {
  list-style: none;
}

ul {
  margin: 0;
  padding: 0;
}

/* ===搜索模块=== */
.search-index {
  display: flex;
  position: fixed;
  top: 0;
  left: 50%;
  /* 照顾兼容性 */
  -webkit-transformx: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  height: 44px;
  min-width: 320px;
  max-width: 540px;
  background-color: #f6f6f6;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.search {
  flex: 1;
  height: 26px;
  margin: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 24px;
  font-size: 12px;
  color: #666;
}

.search::before {
  float: left;
  content: "";
  width: 15px;
  height: 15px;
  background: url(../img/images/sprite.png) no-repeat -59px -279px;
  background-size: 104px auto;
  margin: 5px;
}

.user {
  width: 44px;
  height: 44px;
  text-align: center;
  font-size: 12px;
  color: #2eaae0;
}

.user::before {
  display: block;
  content: "";
  width: 23px;
  height: 23px;
  background: url(../img/images/sprite.png) no-repeat -59px -194px;
  background-size: 104px auto;
  margin: 3px auto 0;
}

/* ===轮播图模块=== */
.focus {
  margin-top: 44px;
}

.focus img {
  width: 100%;
}

/* ===局部导航栏模块=== */
.local-nav {
  height: 64px;
  margin: 3px;
  background-color: #fff;
  border-radius: 8px;
}

.local-nav ul {
  display: flex;
}

.local-nav ul li {
  flex: 1;
}

.local-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.lical-nav-icon {
  width: 32px;
  height: 32px;
  background-color: skyblue;
  margin-top: 8px;
}

.local-nav ul li:nth-child(1) a span {
  background: url(../img/images/localnav_bg.png) no-repeat 0 0;
  background-size: 32px auto;
}

.local-nav ul li:nth-child(2) a span {
  background: url(../img/images/localnav_bg.png) no-repeat 0 -32px;
  background-size: 32px auto;
}

.local-nav ul li:nth-child(3) a span {
  background: url(../img/images/localnav_bg.png) no-repeat 0 -64px;
  background-size: 32px auto;
}

.local-nav ul li:nth-child(4) a span {
  background: url(../img/images/localnav_bg.png) no-repeat 0 -96px;
  background-size: 32px auto;
}

.local-nav ul li:nth-child(5) a span {
  background: url(../img/images/localnav_bg.png) no-repeat 0 -128px;
  background-size: 32px auto;
}

/*=== 主导航栏模块=== */
.nav {
  border-radius: 15px;
  margin: 0 4px 3px;
  overflow: hidden;
}

.nav-common {
  display: flex;
  height: 88px;
  /* background-color: pink; */
}

.nav-common:nth-child(2) {
  margin: 3px 0;
}

.nav-items {
  /* 不冲突 */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-items a {
  flex: 1;
  text-align: center;
  line-height: 44px;
  color: #fff;
  font-size: 14px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

.nav-items a:first-child {
  border-bottom: 1px solid #fff;
}

.nav-items:nth-child(2) {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

.nav-common:first-child .nav-items:first-child a {
  border: 0;
  background: url(../img/images/hotel.png) no-repeat bottom center;
  background-size: 121px auto;
}

.nav-common:nth-child(2) .nav-items:first-child a {
  border: 0;
  background: url(../img/images/hotel2.png) no-repeat bottom center;
  background-size: 121px auto;
}

.nav-common:nth-child(3) .nav-items:first-child a {
  border: 0;
  background: url(../img/images/hotel3.png) no-repeat bottom center;
  background-size: 121px auto;
}

.nav-common:nth-child(1) {
  background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}

.nav-common:nth-child(2) {
  background: -webkit-linear-gradient(left, #4b90ed, #53bced);
}

.nav-common:nth-child(3) {
  background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

/* ===测导航栏模块=== */
.subnav-enty {
  border-radius: 15px;
  background-color: #fff;
  margin: 0 4px;
  padding: 3px 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subnav-enty ul {
  display: flex;
  flex-wrap: wrap;
}

.subnav-enty ul li {
  /* flex可以写百分比 参照于父亲来说的 */
  flex: 20%;
}

.subnav-enty ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subnav-enty ul li a span {
  width: 28px;
  height: 28px;
  margin-top: 4px;
  background-color: skyblue;
}

.subnav-enty ul li:nth-child(1) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 0;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(2) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -27px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(3) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -27px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(4) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -62px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(5) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -97px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(6) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -132px;
  background-size: 28px auto;
}
.subnav-enty ul li:nth-child(7) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -162px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(8) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -197px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(9) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -227px;
  background-size: 28px auto;
}

.subnav-enty ul li:nth-child(10) a span {
  background: url(../img/images/subnav-bg.png) no-repeat 0 -257px;
  background-size: 28px auto;
}

/* ===销售模块=== */
.sales-box {
  border-top: 1px solid #bbb;
  background-color: #fff;
  margin: 4px;
}

.sales-hd {
  position: relative;
  height: 44px;
  border-bottom: 1px solid #ccc;
}

.sales-hd h2 {
  position: relative;
  text-indent: -9999px;
  overflow: hidden;
}

.sales-hd h2::after {
  position: absolute;
  top: 8px;
  left: 10px;
  content: "";
  width: 79px;
  height: 15px;
  background: url(../img/images/hot.png) no-repeat 0 -20px;
  background-size: 79px auto;
}

.mores {
  position: absolute;
  right: 5px;
  top: 0;
  background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
  border-radius: 15px;
  padding: 2px 20px 2px 10px;
  color: #fff;
}

.mores::after {
  position: absolute;
  content: "";
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

.row {
  display: flex;
}

.row a {
  flex: 1;
  border-bottom: 1px solid #eee;
}

.row a:nth-child(2) {
  border-left: 1px solid #eee;
}

.row a img {
  width: 100%;
}

/* ===底部导航栏模块==== */

.nav_bar {
  background-color: #fff;
  margin: 0 4px;
}

.nav_bar ul {
  display: flex;
  /* justify-content: space-between; */
}

.nav_bar ul li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav_bar ul li img {
  width: 23px;
  height: 23px;
}
